package com.voe.common;

public enum NsModes {
	/** previously set mode 
	 */
	kNsUnchanged(0),
	/** platform default 
	 */
	kNsDefault(1), 
	/** conferencing default 
	 */
	kNsConference(2), 
	/** lowest suppression 
	 */
	kNsLowSuppression(3), 
	kNsModerateSuppression(4),
	kNsHighSuppression(5), 
	/** highest suppression
	 */
	kNsVeryHighSuppression(6); 

	public static NsModes fromValue(int value) {
		for (int i=0;i<NsModes.values().length;i++) {
			if(NsModes.values()[i].getValue() == value)
				return NsModes.values()[i];
		}
		return null;
	}

	/**
	 * Constructor.
	 */
	private NsModes(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
